import axios from 'axios';

export default {
  install(V) {
    const Vue = V;
    Vue.prototype.axios = axios;
    Vue.prototype.api = {
      // 首页
      getNavs() {
        return axios.get('/navs');
      },
      getkeyword() {
        return axios.get('/keyword');
      },
      getLBfirstImages() {
        return axios.get('/LBfirstImages');
      },
      getLBsecondImags() {
        return axios.get('/LBsecondImags');
      },
      getDiscountzone() {
        return axios.get('/Discountzone');
      },
      getFlashsale() {
        return axios.get('/Flashsale');
      },
      getLBthirdImages() {
        return axios.get('/LBthirdImages');
      },
      getShop() {
        return axios.get('/shop');
      },
      // 订单
      getitemsImage() {
        return axios.get('/itemsImage');
      },
      getCommodityInformation() {
        return axios.get('/CommodityInformation');
      },
      // 购物车
      getShoppingitemsInformation() {
        return axios.get('/ShoppingitemsInformation');
      },
      getShoppingitemsInformation2() {
        return axios.get('/ShoppingitemsInformation2');
      },
      // 我的
      getMywalletImage() {
        return axios.get('/MywalletImage');
      },
      getFunctionalOptions() {
        return axios.get('/FunctionalOptions');
      },
      // 登录
      getRelatedProducts() {
        return axios.get('/RelatedProducts');
      },
      // 发现
      getfollowShopName() {
        return axios.get('/followShopName');
      },
      getfollowShopItemsImage() {
        return axios.get('/followShopItemsImage');
      },
      // 商品详情
      getListOfSpeciesTitle() {
        return axios.get('/ListOfSpeciesTitle');
      },
      getPurchaseDetailsNodes() {
        return axios.get('/PurchaseDetailsNodes');
      },
    };
  },
};
